package com.zxb.base.task;

import com.zxb.core.dao.system.SysTask;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.stereotype.Component;

/**
 * @author Zxb
 */
@Component
@Slf4j
public class MyJob implements Job{

	@Override
	@SneakyThrows
	public void execute(JobExecutionContext context) {
		SysTask task = (SysTask) context.getMergedJobDataMap().get("task");
		System.out.println("=====》"+task.getUri());
	}
}
